package com.henme.crm.service.admin;

import com.henme.crm.entity.admin.Role;
import com.henme.crm.util.page.Page;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: ruby
 * Date: 13-4-28
 * Time: 下午3:10
 * To change this template use File | Settings | File Templates.
 */
public interface RoleService {

    List<Role> getRoleList() ;
    void insertRole(Role role);
    void updateRole(Role role);
    void deleteRole(Long id);
    Role getRole(Long id);
    List<Role> getRoleListByuserid(Long id);
    Page<Role> getRoleList(Page<Role> page);
    void savePermission(Long roleId, String[] permissionids);
}
